<?php

class IndexController extends SF_Controller_Action
{

	public function init()
	{
		
		/* Initialize action controller here */
	}

	public function indexAction(){

		// action body
		$date = new Zend_Date();
		$data = array(
        	'hour' => $date->get(Zend_Date::HOUR),
        	'min' => $date->get(Zend_Date::MINUTE),
        	'sec' => $date->get(Zend_Date::SECOND)  
		);
		$obj = new stdClass();
		$obj->day = $date->get(Zend_Date::DAY);
		$obj->month = $date->get(Zend_Date::MONTH);
		$obj->year= $date->get(Zend_Date::YEAR);

		$this->view->assign($data);
		$this->view->assign((array)$obj);
		$this->view->name = $this->_getParam('name','guest');
	}

	public function aboutAction()
	{
		// action body
	}
	
	public function sitemapAction()
	{
		die();
		$this->view->layout()->disableLayout();
		$this->_helper->viewRenderer->setNoRender(true);
		echo $this->view->navigation()->sitemap();
	}

	public function __call($method, $args){
		if('Action' == substr($method, -6)){
			$this->_forward('index');
		}
		 
	}

}



